package com.ruoyi.cderp.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存数量调整单对象 tbl_stock_num_adjust_sheet
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public class TblStockNumAdjustSheet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 单据号 */
    @Excel(name = "单据号")
    private String code;

    /** 仓库 */
    @Excel(name = "仓库")
    private String scId;

    // 仓库名称
    private String scName;

    // 仓库编号
    private String scCode;

    /** 调价品种数 */
    private Long productNum;

    /** 库存调整数量 */
    private BigDecimal diffNum;

    /** 调整原因 */
    @Excel(name = "调整原因")
    private String reasonId;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private Long bizType;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    private String createById;

    // 创建最早时间
    private Date createMinTime;

    // 创建最晚时间
    private Date createMaxTime;

    /** 修改人ID */
    private String updateById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    // 审核最早时间
    private Date approveMinTime;

    // 审核最晚时间
    private Date approveMaxTime;

    /** 拒绝原因 */
    private String refuseReason;

    /** 库存数量调整单明细信息 */
    private List<TblStockNumAdjustSheetDetail> tblStockNumAdjustSheetDetailList;

    public String getScName() {
        return scName;
    }

    public void setScName(String scName) {
        this.scName = scName;
    }

    public String getScCode() {
        return scCode;
    }

    public void setScCode(String scCode) {
        this.scCode = scCode;
    }

    public Date getCreateMinTime() {
        return createMinTime;
    }

    public void setCreateMinTime(Date createMinTime) {
        this.createMinTime = createMinTime;
    }

    public Date getCreateMaxTime() {
        return createMaxTime;
    }

    public void setCreateMaxTime(Date createMaxTime) {
        this.createMaxTime = createMaxTime;
    }

    public Date getApproveMinTime() {
        return approveMinTime;
    }

    public void setApproveMinTime(Date approveMinTime) {
        this.approveMinTime = approveMinTime;
    }

    public Date getApproveMaxTime() {
        return approveMaxTime;
    }

    public void setApproveMaxTime(Date approveMaxTime) {
        this.approveMaxTime = approveMaxTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setScId(String scId)
    {
        this.scId = scId;
    }

    public String getScId()
    {
        return scId;
    }
    public void setProductNum(Long productNum)
    {
        this.productNum = productNum;
    }

    public Long getProductNum()
    {
        return productNum;
    }
    public void setDiffNum(BigDecimal diffNum)
    {
        this.diffNum = diffNum;
    }

    public BigDecimal getDiffNum()
    {
        return diffNum;
    }
    public void setReasonId(String reasonId)
    {
        this.reasonId = reasonId;
    }

    public String getReasonId()
    {
        return reasonId;
    }
    public void setBizType(Long bizType)
    {
        this.bizType = bizType;
    }

    public Long getBizType()
    {
        return bizType;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setCreateById(String createById)
    {
        this.createById = createById;
    }

    public String getCreateById()
    {
        return createById;
    }
    public void setUpdateById(String updateById)
    {
        this.updateById = updateById;
    }

    public String getUpdateById()
    {
        return updateById;
    }
    public void setApproveBy(String approveBy)
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy()
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime)
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime()
    {
        return approveTime;
    }
    public void setRefuseReason(String refuseReason)
    {
        this.refuseReason = refuseReason;
    }

    public String getRefuseReason()
    {
        return refuseReason;
    }

    public List<TblStockNumAdjustSheetDetail> getTblStockNumAdjustSheetDetailList()
    {
        return tblStockNumAdjustSheetDetailList;
    }

    public void setTblStockNumAdjustSheetDetailList(List<TblStockNumAdjustSheetDetail> tblStockNumAdjustSheetDetailList)
    {
        this.tblStockNumAdjustSheetDetailList = tblStockNumAdjustSheetDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("scId", getScId())
            .append("productNum", getProductNum())
            .append("diffNum", getDiffNum())
            .append("reasonId", getReasonId())
            .append("bizType", getBizType())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("refuseReason", getRefuseReason())
            .append("tblStockNumAdjustSheetDetailList", getTblStockNumAdjustSheetDetailList())
            .toString();
    }
}
